package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @author 林道样
 * @date 2020-03-05 15:14
 */
public interface MemberDao {
    List<Member> findAll();

    Page<Member> selectByCondition(String queryString);

    void add(Member member);

    void deleteById(Integer id);

    Member findById(Integer id);

    Member findByTelephone(String telephone);

    void edit(Member member);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();

    User selectUserByUserId(Integer userId);

    List<User> findAllUser();

    void addMember(Member member);


    Integer findUserIdByUsername(String username);
}
